table {
    text-align: center;
    table-layout: fixed;
}

td {
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
}

/* for page button */
#page {
    width: 80px;
    padding: 0 12px;
    vertical-align: top;
    text-align: center;
    outline: none;
}

#page,
.input-number-decrement,
.input-number-increment {
    border: 1px solid #ccc;
    height: 40px;
    user-select: none;
}

.input-number-decrement,
.input-number-increment {
    display: inline-block;
    width: 30px;
    line-height: 38px;
    background: #f1f1f1;
    color: #444;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.input-number-decrement:active,
.input-number-increment:active {
    background: #ddd;
}

.input-number-decrement {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-number-increment {
    border-left: none;
    border-radius: 0 4px 4px 0;
}

/* for reload button */

#spinner {
    margin-top: 20px;
    margin-left: 0;
    position: relative;
    width: 20px;
    height: 20px;
}

#spinner #pause,
#spinner #continue {
    position: absolute;
    top: 0;
    left: 0;
}

#spinner #continue {
    top: 2px;
    left: 2px;
    width: 100%;
    height: 100%;
}

#spinner #pause {
    font-style: normal;
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1rem;
    margin-top: 2px;
    width: 100%;
    text-align: center;
    opacity: 0.8;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

#spinner.active #pause {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

#spinner.active path.visualizer {
    opacity: 1;
}

.active .waiting path.visualizer {
    opacity: 0;
    stroke: #000;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: waiting 10s linear;
    /* */
}

@keyframes waiting {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -199;
    }
}

@keyframes modify {
    from {
        stroke-dasharray: 6;
        stroke-dashoffset: 12;
    }
    20% {
        stroke-dasharray: 0;
        stroke-dashoffset: 0;
    }
    21% {
        stroke-dasharray: 200;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -199;
    }
}

.active .loading path.visualizer {
    stroke: #333;
    stroke-dasharray: 6;
    animation: dash 0.3s linear infinite;
}

@keyframes dash {
    from {
        stroke-dashoffset: 12;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* status badges */

.status {
    display: inline-block;
    padding: 0 2px;
    box-sizing: border-box;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 2px;
    font-size: small;
    background: rgb(101, 101, 101);
    color: rgb(255, 255, 255);
}

.status#Memory\ Limit\ Exceeded, .status#Time\ Limit\ Exceeded {
    background: rgb(196, 137, 0);
}

.status#Accepted {
    background: rgb(82, 196, 26);
}

.status#Wrong\ Answer {
    background: rgb(196, 0, 0);
}
